package com.loyal.loyalerp.basedata.department.model;

import java.util.ArrayList;
import java.util.List;

public class DepartmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DepartmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNull() {
            addCriterion("CompanyId is null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIsNotNull() {
            addCriterion("CompanyId is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyIdEqualTo(Integer value) {
            addCriterion("CompanyId =", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotEqualTo(Integer value) {
            addCriterion("CompanyId <>", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThan(Integer value) {
            addCriterion("CompanyId >", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("CompanyId >=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThan(Integer value) {
            addCriterion("CompanyId <", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdLessThanOrEqualTo(Integer value) {
            addCriterion("CompanyId <=", value, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdIn(List<Integer> values) {
            addCriterion("CompanyId in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotIn(List<Integer> values) {
            addCriterion("CompanyId not in", values, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdBetween(Integer value1, Integer value2) {
            addCriterion("CompanyId between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("CompanyId not between", value1, value2, "companyId");
            return (Criteria) this;
        }

        public Criteria andDeptCodeIsNull() {
            addCriterion("DeptCode is null");
            return (Criteria) this;
        }

        public Criteria andDeptCodeIsNotNull() {
            addCriterion("DeptCode is not null");
            return (Criteria) this;
        }

        public Criteria andDeptCodeEqualTo(String value) {
            addCriterion("DeptCode =", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeNotEqualTo(String value) {
            addCriterion("DeptCode <>", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeGreaterThan(String value) {
            addCriterion("DeptCode >", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeGreaterThanOrEqualTo(String value) {
            addCriterion("DeptCode >=", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeLessThan(String value) {
            addCriterion("DeptCode <", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeLessThanOrEqualTo(String value) {
            addCriterion("DeptCode <=", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeLike(String value) {
            addCriterion("DeptCode like", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeNotLike(String value) {
            addCriterion("DeptCode not like", value, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeIn(List<String> values) {
            addCriterion("DeptCode in", values, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeNotIn(List<String> values) {
            addCriterion("DeptCode not in", values, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeBetween(String value1, String value2) {
            addCriterion("DeptCode between", value1, value2, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptCodeNotBetween(String value1, String value2) {
            addCriterion("DeptCode not between", value1, value2, "deptCode");
            return (Criteria) this;
        }

        public Criteria andDeptNameIsNull() {
            addCriterion("DeptName is null");
            return (Criteria) this;
        }

        public Criteria andDeptNameIsNotNull() {
            addCriterion("DeptName is not null");
            return (Criteria) this;
        }

        public Criteria andDeptNameEqualTo(String value) {
            addCriterion("DeptName =", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotEqualTo(String value) {
            addCriterion("DeptName <>", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameGreaterThan(String value) {
            addCriterion("DeptName >", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameGreaterThanOrEqualTo(String value) {
            addCriterion("DeptName >=", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLessThan(String value) {
            addCriterion("DeptName <", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLessThanOrEqualTo(String value) {
            addCriterion("DeptName <=", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameLike(String value) {
            addCriterion("DeptName like", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotLike(String value) {
            addCriterion("DeptName not like", value, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameIn(List<String> values) {
            addCriterion("DeptName in", values, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotIn(List<String> values) {
            addCriterion("DeptName not in", values, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameBetween(String value1, String value2) {
            addCriterion("DeptName between", value1, value2, "deptName");
            return (Criteria) this;
        }

        public Criteria andDeptNameNotBetween(String value1, String value2) {
            addCriterion("DeptName not between", value1, value2, "deptName");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNull() {
            addCriterion("ParentId is null");
            return (Criteria) this;
        }

        public Criteria andParentIdIsNotNull() {
            addCriterion("ParentId is not null");
            return (Criteria) this;
        }

        public Criteria andParentIdEqualTo(Integer value) {
            addCriterion("ParentId =", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotEqualTo(Integer value) {
            addCriterion("ParentId <>", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThan(Integer value) {
            addCriterion("ParentId >", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("ParentId >=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThan(Integer value) {
            addCriterion("ParentId <", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdLessThanOrEqualTo(Integer value) {
            addCriterion("ParentId <=", value, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdIn(List<Integer> values) {
            addCriterion("ParentId in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotIn(List<Integer> values) {
            addCriterion("ParentId not in", values, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdBetween(Integer value1, Integer value2) {
            addCriterion("ParentId between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("ParentId not between", value1, value2, "parentId");
            return (Criteria) this;
        }

        public Criteria andCodeLevelIsNull() {
            addCriterion("CodeLevel is null");
            return (Criteria) this;
        }

        public Criteria andCodeLevelIsNotNull() {
            addCriterion("CodeLevel is not null");
            return (Criteria) this;
        }

        public Criteria andCodeLevelEqualTo(Integer value) {
            addCriterion("CodeLevel =", value, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelNotEqualTo(Integer value) {
            addCriterion("CodeLevel <>", value, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelGreaterThan(Integer value) {
            addCriterion("CodeLevel >", value, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelGreaterThanOrEqualTo(Integer value) {
            addCriterion("CodeLevel >=", value, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelLessThan(Integer value) {
            addCriterion("CodeLevel <", value, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelLessThanOrEqualTo(Integer value) {
            addCriterion("CodeLevel <=", value, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelIn(List<Integer> values) {
            addCriterion("CodeLevel in", values, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelNotIn(List<Integer> values) {
            addCriterion("CodeLevel not in", values, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelBetween(Integer value1, Integer value2) {
            addCriterion("CodeLevel between", value1, value2, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andCodeLevelNotBetween(Integer value1, Integer value2) {
            addCriterion("CodeLevel not between", value1, value2, "codeLevel");
            return (Criteria) this;
        }

        public Criteria andEndFlagIsNull() {
            addCriterion("EndFlag is null");
            return (Criteria) this;
        }

        public Criteria andEndFlagIsNotNull() {
            addCriterion("EndFlag is not null");
            return (Criteria) this;
        }

        public Criteria andEndFlagEqualTo(Boolean value) {
            addCriterion("EndFlag =", value, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagNotEqualTo(Boolean value) {
            addCriterion("EndFlag <>", value, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagGreaterThan(Boolean value) {
            addCriterion("EndFlag >", value, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagGreaterThanOrEqualTo(Boolean value) {
            addCriterion("EndFlag >=", value, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagLessThan(Boolean value) {
            addCriterion("EndFlag <", value, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagLessThanOrEqualTo(Boolean value) {
            addCriterion("EndFlag <=", value, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagIn(List<Boolean> values) {
            addCriterion("EndFlag in", values, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagNotIn(List<Boolean> values) {
            addCriterion("EndFlag not in", values, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagBetween(Boolean value1, Boolean value2) {
            addCriterion("EndFlag between", value1, value2, "endFlag");
            return (Criteria) this;
        }

        public Criteria andEndFlagNotBetween(Boolean value1, Boolean value2) {
            addCriterion("EndFlag not between", value1, value2, "endFlag");
            return (Criteria) this;
        }

        public Criteria andAccCodeIsNull() {
            addCriterion("AccCode is null");
            return (Criteria) this;
        }

        public Criteria andAccCodeIsNotNull() {
            addCriterion("AccCode is not null");
            return (Criteria) this;
        }

        public Criteria andAccCodeEqualTo(String value) {
            addCriterion("AccCode =", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeNotEqualTo(String value) {
            addCriterion("AccCode <>", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeGreaterThan(String value) {
            addCriterion("AccCode >", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeGreaterThanOrEqualTo(String value) {
            addCriterion("AccCode >=", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeLessThan(String value) {
            addCriterion("AccCode <", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeLessThanOrEqualTo(String value) {
            addCriterion("AccCode <=", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeLike(String value) {
            addCriterion("AccCode like", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeNotLike(String value) {
            addCriterion("AccCode not like", value, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeIn(List<String> values) {
            addCriterion("AccCode in", values, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeNotIn(List<String> values) {
            addCriterion("AccCode not in", values, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeBetween(String value1, String value2) {
            addCriterion("AccCode between", value1, value2, "accCode");
            return (Criteria) this;
        }

        public Criteria andAccCodeNotBetween(String value1, String value2) {
            addCriterion("AccCode not between", value1, value2, "accCode");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagIsNull() {
            addCriterion("CwzzFlag is null");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagIsNotNull() {
            addCriterion("CwzzFlag is not null");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagEqualTo(Boolean value) {
            addCriterion("CwzzFlag =", value, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagNotEqualTo(Boolean value) {
            addCriterion("CwzzFlag <>", value, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagGreaterThan(Boolean value) {
            addCriterion("CwzzFlag >", value, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagGreaterThanOrEqualTo(Boolean value) {
            addCriterion("CwzzFlag >=", value, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagLessThan(Boolean value) {
            addCriterion("CwzzFlag <", value, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagLessThanOrEqualTo(Boolean value) {
            addCriterion("CwzzFlag <=", value, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagIn(List<Boolean> values) {
            addCriterion("CwzzFlag in", values, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagNotIn(List<Boolean> values) {
            addCriterion("CwzzFlag not in", values, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagBetween(Boolean value1, Boolean value2) {
            addCriterion("CwzzFlag between", value1, value2, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andCwzzFlagNotBetween(Boolean value1, Boolean value2) {
            addCriterion("CwzzFlag not between", value1, value2, "cwzzFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagIsNull() {
            addCriterion("XsFlag is null");
            return (Criteria) this;
        }

        public Criteria andXsFlagIsNotNull() {
            addCriterion("XsFlag is not null");
            return (Criteria) this;
        }

        public Criteria andXsFlagEqualTo(Boolean value) {
            addCriterion("XsFlag =", value, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagNotEqualTo(Boolean value) {
            addCriterion("XsFlag <>", value, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagGreaterThan(Boolean value) {
            addCriterion("XsFlag >", value, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagGreaterThanOrEqualTo(Boolean value) {
            addCriterion("XsFlag >=", value, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagLessThan(Boolean value) {
            addCriterion("XsFlag <", value, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagLessThanOrEqualTo(Boolean value) {
            addCriterion("XsFlag <=", value, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagIn(List<Boolean> values) {
            addCriterion("XsFlag in", values, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagNotIn(List<Boolean> values) {
            addCriterion("XsFlag not in", values, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagBetween(Boolean value1, Boolean value2) {
            addCriterion("XsFlag between", value1, value2, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andXsFlagNotBetween(Boolean value1, Boolean value2) {
            addCriterion("XsFlag not between", value1, value2, "xsFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagIsNull() {
            addCriterion("CgFlag is null");
            return (Criteria) this;
        }

        public Criteria andCgFlagIsNotNull() {
            addCriterion("CgFlag is not null");
            return (Criteria) this;
        }

        public Criteria andCgFlagEqualTo(Boolean value) {
            addCriterion("CgFlag =", value, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagNotEqualTo(Boolean value) {
            addCriterion("CgFlag <>", value, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagGreaterThan(Boolean value) {
            addCriterion("CgFlag >", value, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagGreaterThanOrEqualTo(Boolean value) {
            addCriterion("CgFlag >=", value, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagLessThan(Boolean value) {
            addCriterion("CgFlag <", value, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagLessThanOrEqualTo(Boolean value) {
            addCriterion("CgFlag <=", value, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagIn(List<Boolean> values) {
            addCriterion("CgFlag in", values, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagNotIn(List<Boolean> values) {
            addCriterion("CgFlag not in", values, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagBetween(Boolean value1, Boolean value2) {
            addCriterion("CgFlag between", value1, value2, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andCgFlagNotBetween(Boolean value1, Boolean value2) {
            addCriterion("CgFlag not between", value1, value2, "cgFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagIsNull() {
            addCriterion("DevFlag is null");
            return (Criteria) this;
        }

        public Criteria andDevFlagIsNotNull() {
            addCriterion("DevFlag is not null");
            return (Criteria) this;
        }

        public Criteria andDevFlagEqualTo(Boolean value) {
            addCriterion("DevFlag =", value, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagNotEqualTo(Boolean value) {
            addCriterion("DevFlag <>", value, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagGreaterThan(Boolean value) {
            addCriterion("DevFlag >", value, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagGreaterThanOrEqualTo(Boolean value) {
            addCriterion("DevFlag >=", value, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagLessThan(Boolean value) {
            addCriterion("DevFlag <", value, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagLessThanOrEqualTo(Boolean value) {
            addCriterion("DevFlag <=", value, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagIn(List<Boolean> values) {
            addCriterion("DevFlag in", values, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagNotIn(List<Boolean> values) {
            addCriterion("DevFlag not in", values, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagBetween(Boolean value1, Boolean value2) {
            addCriterion("DevFlag between", value1, value2, "devFlag");
            return (Criteria) this;
        }

        public Criteria andDevFlagNotBetween(Boolean value1, Boolean value2) {
            addCriterion("DevFlag not between", value1, value2, "devFlag");
            return (Criteria) this;
        }

        public Criteria andPrincipalIsNull() {
            addCriterion("Principal is null");
            return (Criteria) this;
        }

        public Criteria andPrincipalIsNotNull() {
            addCriterion("Principal is not null");
            return (Criteria) this;
        }

        public Criteria andPrincipalEqualTo(String value) {
            addCriterion("Principal =", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalNotEqualTo(String value) {
            addCriterion("Principal <>", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalGreaterThan(String value) {
            addCriterion("Principal >", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalGreaterThanOrEqualTo(String value) {
            addCriterion("Principal >=", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalLessThan(String value) {
            addCriterion("Principal <", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalLessThanOrEqualTo(String value) {
            addCriterion("Principal <=", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalLike(String value) {
            addCriterion("Principal like", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalNotLike(String value) {
            addCriterion("Principal not like", value, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalIn(List<String> values) {
            addCriterion("Principal in", values, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalNotIn(List<String> values) {
            addCriterion("Principal not in", values, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalBetween(String value1, String value2) {
            addCriterion("Principal between", value1, value2, "principal");
            return (Criteria) this;
        }

        public Criteria andPrincipalNotBetween(String value1, String value2) {
            addCriterion("Principal not between", value1, value2, "principal");
            return (Criteria) this;
        }

        public Criteria andTelephoneIsNull() {
            addCriterion("Telephone is null");
            return (Criteria) this;
        }

        public Criteria andTelephoneIsNotNull() {
            addCriterion("Telephone is not null");
            return (Criteria) this;
        }

        public Criteria andTelephoneEqualTo(String value) {
            addCriterion("Telephone =", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotEqualTo(String value) {
            addCriterion("Telephone <>", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneGreaterThan(String value) {
            addCriterion("Telephone >", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneGreaterThanOrEqualTo(String value) {
            addCriterion("Telephone >=", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneLessThan(String value) {
            addCriterion("Telephone <", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneLessThanOrEqualTo(String value) {
            addCriterion("Telephone <=", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneLike(String value) {
            addCriterion("Telephone like", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotLike(String value) {
            addCriterion("Telephone not like", value, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneIn(List<String> values) {
            addCriterion("Telephone in", values, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotIn(List<String> values) {
            addCriterion("Telephone not in", values, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneBetween(String value1, String value2) {
            addCriterion("Telephone between", value1, value2, "telephone");
            return (Criteria) this;
        }

        public Criteria andTelephoneNotBetween(String value1, String value2) {
            addCriterion("Telephone not between", value1, value2, "telephone");
            return (Criteria) this;
        }

        public Criteria andFaxIsNull() {
            addCriterion("Fax is null");
            return (Criteria) this;
        }

        public Criteria andFaxIsNotNull() {
            addCriterion("Fax is not null");
            return (Criteria) this;
        }

        public Criteria andFaxEqualTo(String value) {
            addCriterion("Fax =", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxNotEqualTo(String value) {
            addCriterion("Fax <>", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxGreaterThan(String value) {
            addCriterion("Fax >", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxGreaterThanOrEqualTo(String value) {
            addCriterion("Fax >=", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxLessThan(String value) {
            addCriterion("Fax <", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxLessThanOrEqualTo(String value) {
            addCriterion("Fax <=", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxLike(String value) {
            addCriterion("Fax like", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxNotLike(String value) {
            addCriterion("Fax not like", value, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxIn(List<String> values) {
            addCriterion("Fax in", values, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxNotIn(List<String> values) {
            addCriterion("Fax not in", values, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxBetween(String value1, String value2) {
            addCriterion("Fax between", value1, value2, "fax");
            return (Criteria) this;
        }

        public Criteria andFaxNotBetween(String value1, String value2) {
            addCriterion("Fax not between", value1, value2, "fax");
            return (Criteria) this;
        }

        public Criteria andActiveIsNull() {
            addCriterion("Active is null");
            return (Criteria) this;
        }

        public Criteria andActiveIsNotNull() {
            addCriterion("Active is not null");
            return (Criteria) this;
        }

        public Criteria andActiveEqualTo(Boolean value) {
            addCriterion("Active =", value, "active");
            return (Criteria) this;
        }

        public Criteria andActiveNotEqualTo(Boolean value) {
            addCriterion("Active <>", value, "active");
            return (Criteria) this;
        }

        public Criteria andActiveGreaterThan(Boolean value) {
            addCriterion("Active >", value, "active");
            return (Criteria) this;
        }

        public Criteria andActiveGreaterThanOrEqualTo(Boolean value) {
            addCriterion("Active >=", value, "active");
            return (Criteria) this;
        }

        public Criteria andActiveLessThan(Boolean value) {
            addCriterion("Active <", value, "active");
            return (Criteria) this;
        }

        public Criteria andActiveLessThanOrEqualTo(Boolean value) {
            addCriterion("Active <=", value, "active");
            return (Criteria) this;
        }

        public Criteria andActiveIn(List<Boolean> values) {
            addCriterion("Active in", values, "active");
            return (Criteria) this;
        }

        public Criteria andActiveNotIn(List<Boolean> values) {
            addCriterion("Active not in", values, "active");
            return (Criteria) this;
        }

        public Criteria andActiveBetween(Boolean value1, Boolean value2) {
            addCriterion("Active between", value1, value2, "active");
            return (Criteria) this;
        }

        public Criteria andActiveNotBetween(Boolean value1, Boolean value2) {
            addCriterion("Active not between", value1, value2, "active");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}